working on intersection test