modify attachment