add while loop to look up word enternally