get words function added