working on heuristics