cleaning up error messages