added gain printf