with and without repartitioning