pass vectors using pointer