fixed the topmost () bug, added getTextCollection function