basic repartitioning first step