replace let with lambda lifting let