nit: use a different variable to avoid side effects.