not crazy about nested ternary operators