added spelling checking mechanism