return vector on the stack