error messages corrected