Pairwise perturbation of flagellin subunits