maybe the param to fmt ought to be split into a new variable. two ternary operators in one line is too much for the parser in my head.