left and right filtering basis done