tweak to gap_filter