rename lambda wrapper to wrap