modified heuristic
modified heuristic