fixed error outputs