commented lambda use in main.cpp