use sharding for processor