fix: put lambda call inside block