fixing dist match