fixed error formatting