make filtering optional