got rid of unused 'setGain'