remove distance measure and use simple oo distance measure.