corrected all the errors