added colors and legend