corrected errormsgs.