refine region close flow