reverted changes for a simpler wire coloring implementation