compute cross comparison
compute cross comparison