slight changes to heuristics