converting to vectors