finalized mappings, add legend