add gain nodes