use ternary operators