add documentation for lambda