Check the boundary for highlghting