legend and color update