trimmer before peak detector