need to debug repartition