some changes to add spell chack and modifying