changed all to vectors