improving heuristics