nested lambda protection