added getWords