added color loops for classes