homophyly batches corrected