use ternary operators and literals