finished ternary operator