made intersectionDectector stateless