pointers to vectors

Switched from pointers to vectors. Turns out that was causing the
error.