made and corrected errors