add update for gameobject