finalizing legend of map