updates lambda snippet