make the map into a proper object