modify attachment patch