changing the variable in getwords