ported over partitioning code