computeCarthesianProduct changes