removed histogram plotting diagnostics