modify attachments