changed gid back to integer