fixed match

i think… needs testing!