small refactor with lambda