adjusting error reporting
empty error check
empty