improved performance of vectors