added benchmarking recursion to wed