slight changes on plot_flank_regions