 			if (alarmOn)
 			{
 				alarmOn = 0;
-				display.enableNumericDisplay();
-				display.writeMessage("OFF ");
-				delay(600);
-				updateAlarm();
-				display.enableClockDisplay();
-				display.enableBlink(0);
+				for (int i = 0; i < N; i++)
+					display.disableDecimalPoint(i);
 			} else 
 			{
 				alarmOn = 1;
-				display.enableNumericDisplay();
-				display.writeMessage("ON  ");
-				delay(600);
-				updateAlarm();
-				display.enableClockDisplay();
-				display.enableBlink(0);
+				for (int i = 0; i < N; i++)
+					display.enableDecimalPoint(i);
 			}
 			break;
 

	{
		display.disableBlink(activeDigit);
		activeDigit+=2;
		activeDigit %= NO_OF_DIGITS;
		display.enableBlink(activeDigit);
	}	
}

				delay(600);
				updateAlarm();
				display.enableClockDisplay();

				if (alarmOn)
				{
					for (int i = 0; i < N; i++)
						display.enableDecimalPoint(i);
				} else {
					for (int i = 0; i < N; i++)
						display.disableDecimalPoint(i);
				}

				activeDigit = 0;
				display.enableBlink(activeDigit);
			}

			oldFsmState = fsmState;
