added remainder of graphs
added fix to heuristic