small optimization to multithreading, fixed singlethreaded run