error checking on consumer