added lambda encoding
added lambda encoding