removed unused param action from reward function