corrected all small errors