countdown working properly