updating reward