minor changes for add attachment