alarms seemed to cause the crash, changed to setInterval