simplify lambda expression