changed way of producing to producer,consumer