function wall_units(pat, spill, graph_path, marker)
    if spill
        fs = load(strjoin(['/Volumes/home/test/calib/' pat '/clean/tracks/z001_t001.mat'], "")).tracks;
    else
        fs = load(strjoin(['/Volumes/home/test/calib/' pat '/tracks/z001_t001.mat'], "")).tracks;
    end
    U = [fs.u];
    X = [fs.x];
    
    utau = 8.34;
    figure
    
    N = 500;
    n = 0;
    us = [];
    ys = [];
    while N>2*n
        y = -cos(pi*n/N)*150;
        y1 = -cos(pi*(n+1)/N)*150;
        y2 = -cos(pi*(n-1)/N)*150;
    
    
        slice = (y2 < X(2,:) & X(2,:) < y1);
    
        umean = nanmean(U(1,slice));
    
        us(n+1) = (umean/8.34);

        ys(n+1) = (y+150)*8.34;

        n = n+1;
    end
    hold on;
    scatter(ys, us);
    
    set(gca,'xscale','log')
    grid()
    p1 = plot(linspace(0, 11), linspace(0, 11));
    p2 = plot(linspace(11, 1000), (1/0.4)*log(linspace(11, 1000))+5);
    legend([p1, p2], "linear", "log law")
    xlabel("$y^+$", "Interpreter", "latex")
    ylabel("$U^+$", "Interpreter", "latex")
    hold off
    filename = "uplusdirty";
    if spill
        filename = "uplusclean";
    end

    try
        saveas(gcf, strjoin([graph_path, pat, filename],"/")+".png")
    
        savefig(gcf, strjoin([graph_path, pat, filename], "/"))
        
    catch
        fprintf("couldnt save wall units\n");
    end
     figure
    %%
    
    hold on;
    
    n = 0;
    
    while N>2*n
        y = -cos(pi*n/N)*150;
        y1 = -cos(pi*(n+1)/N)*150;
        y2 = -cos(pi*(n-1)/N)*150;
    
        slice = (y2 < X(2,:) & X(2,:) < y1);
    
        Ui  = U(1, slice);
        ubar = nanmean(Ui);
        
        uprms = sqrt((sum(Ui.^2 - ubar^2))/sum(nonzeros(slice)));
    
        upprms = uprms/utau;
          
        yi = mean(X(2, slice)+150);
        yplus = yi*utau;
    
        scatter(yplus, upprms);
    
        n = n+1;
    end
    set(gca,'xscale','log')
    xlabel("$y^+$", "Interpreter", "latex")
    ylabel("$u^{+'}_{rms}$", "Interpreter", "latex")
    x=linspace(0,500,5e3);
    plot(x,x)
    plot(x,((1/0.4) * log(x)) + 5)
    
    filename = "upprmsdirty.png";
    if spill
        filename = "upprmsclean.png";
    end

    try
        saveas(gcf, strjoin([graph_path, pat, filename], "/"))
    catch
        fprintf("still cant save\n")
    end
    hold off
end