adding support to the clearIfNotMatch option