update for intersect logic correction
update for test cases