added color to gates/switches