This is the unstable version.Solving intersect problem