udpate attachments