had to redo the coffee conversion because the ternary operator didn't work