display words function created