refactored Lambda constructor