skeleton train update code