master #2 add plot2map prototype function