Coffee machines get specks of dirt soon and darken from the inside because coffee is a colored beverage. You should always switch off the machine when not in use. Keep it cleaned always. Ensure  that the carafe is always empty.