first draft at GPT partitioning