call f(path, aval) and add func collectPaths