refractored the Dispencer