remove flatten filter