rename type to time_frame