forgot to change this, should be Range (0, threads)