udpating the g code