fixed grid partition script