made a ternary operator