changed quantity to number field