udpate quantity and move some other things around