changed one directory
started new funtion for multithreading