deprecated Vec function