add a copy method to the map