changed UpdatePosition Method