tuned gains and thresholding paramters