brandon_r1: border dection