obtain boundaries for interpolation had a bug

now fixed