added next timer logic