added word checking