fixed issues with adding/replacing words in the last commit, as well as some code execution errors