implemented countdown