nit: I was surprised to see the function declaration inline here