update timer code (style)