still working out bugs in vector