set flags to extent region
create precostsurface