solved the multithreading problem