improve integration region determination