added sentence checker