/* a solution without a safe map with mutex and without a waitgroup ? */