added support for nested lambda