changing for dist match