made thread for all threads