still needs to check the edited quantity