fixed stupid error in benchmark function