vars to store each letter; many ternary operators