fixing bug in consumer interface