start adaptive partitioning implemenation