update the contenst of rewards.cpp