add patchGroup method