remove unused "oldthreads" variable