remove waitgroup from main