added auto_tc for varying sampling interval