please move this anonymous function to a real function in the outer scope