added set_gain function