read through and corrected errors