added code to dispay words