Use partition instead of double filter.