added the quantity to the data