added the filter for small peaks