updateGains untested