updating gains for bb