removed vector length check; doesn't work when passing arrays into functions