rewardDelay fitting code automated