updateGains tested