please make this line shorter. maybe extract the lifetime in a local variable and put spaces in the ternary operator