added benchmarking code