intersection checking