rewards handling, algorithm to be tested