reinserting up-to-date timer code