added some debugging information for partitioning.