Change the calculation of the gains