lambda code added