added call to new flagregions routine