add gain to output