fixing up error messages.