fixed heuristic1