add code to look at distance from wall cuts
merging stuff