update gain