remove waitgroup