removed gain and threshold as parameters