modify countdown logic