added general checkWord