allow functions is vectors