function now inline. with benchmarking infrastructures