fixed json feedback and reward functions