updated 0qty routine