fixed ternary expression for coffee