made some change on priting gid