updates vectors