changed the returned error instance