nit: const correctness