modified error report mes and removed prnt stmt