new from map code