rewrite init_time