corrected the benchmarking loop