add multithreading in project