nit: declare it closer where it is used