concave algo filtering first pass