fixed the gains again