countdown() is pretty badly done