implemented reward system