added validation to lambda support
added validation