updated the '_vectorized' decorator