fixed to accept non-numeric gID