add simple and ugly range partitioning