update k vector creation