add pair filtering