adding some stuff to the multithreading