making changes for better error reporting