use ternary-ish expression