adding controls for gain and frequency