add m_hist, P_hist