added separate word recognition