new approach at border detection; identified left & right borders sucessfully