quantity not working