cdo_main and stats_temp updated