added prod/con to recv