removing old code time_fct