func_cd_ts improve