faster thresholding and feature averaging