added heuristic merges