can get last word but infinite loop for some reason