addition fixed to make perf script more reliable