worked on countdown logic