changed shard id type to int