converted everything to vectors