add course legend