made minor tweaks to lambda