change distance func in heuristic