assigning colors to groups