some refactorings
serialize lambda