new gain function (and reward threshold) to be tested in real exps.