removed dispense func