add size check to vector_get