added new lambda analysis code