woking on partitioning error