working with jlambda, and optimization at expansion time