wrote first cut of the section on partitioning