write fit histos