extract-patch v2: not optimized