brandon_r2: border detection2 - not working