Udpating code