working version that selects first word
last semi-working version