fix closure parameter naming after refactoring