added feature that check quantity from vend