reduce use of lambda