update small_gain