hacked a fix for isomap performance issue