working lambda (ok for recursion)