started code to calculate correlation between sims and width