use Vector2 in the update function.