added end back to method in wordscontroller