adding lambdas in depth basic scripts