added the time counter