Rewriting multiblocks