implemented word-picker function