if (active == 0) { active = 1 alarm[0] = 1 }