fixing function benchmarks