implemented lambda functionality.