using 'lambda' keyword instead of dash rocket