define `name` here instead of in the outer scope