approx matching working (very slowly!)