add CountDownLatch to generate report when threads finished