fixed concatenation bug, still some problems with obstacles inside the horizon