update program names in legends