updating legend, style