nit: anonymous function here