color repetitions according to heuristic