add checking that mean_mes_for_all_time !=0. You no need to write 0 values