add function makeVector