began new heuristics function