2nd update code