working on error output