update code mistake