working model, need to update histogram-making to align with paper's method