created threads and start them in main