included lambda as a variable, common function for ICL2IAMP