fixed adding non-integer values for quantity