swap match conditions