updated output file name from _dsgid to _gid