can use vectors in functions