vectorizing
not defined yet