adding benchmarking code