removed multithreading again