added perf testing code