refine attachmentid