corrected spelling errors and deleted unnecessary code