updating the codes