writing the con_forcast and some other modification