debugging magic partition