changed fn to lambda literal