separate block of code: for clock and for countdown. beta version.