Replace with lambda expression