creating a vector version