updated some update code