use dist instead of custom distance calculator