amount was changed to quantity