updated matching function, things seem to be much better with the fringe split check.