fixed choose bounded region

now works for any d
also changed calling it, in main_rembo.

The output should still be the same form