removed R flag from patching