link the attachment