code for sharding osm