tweaks to heuristics