nit: No need for anonymous function here