get words by depth