removed filterPeak function
updated filter method