function to set and get map name