adjusted cres_in_range to use sharding scheme