added code for range partitioning