change syntax of lambda expression