intervals array reset and clear actual interval main when recreate the counter