now threads are working always