rewrite timer