debugged model, checked on clock with alarm