fixed errors for benchmarking