added intersect definition after testing