add name to function passed to series/parallel