chenged test for border collisions