remove use of vector