changed heuristic