add docstring for vectorize