replace subpatch by [max~]