added word checking for adjacent words