[PD] how to replace a value in all subpatches