modify  the function of intersects