in a polymer flood , where bacterial contamination frequently causes a loss in viscosity of the polymer , the viscosity of the polymer solution is maintained by the use of a xanthan polymer modified by methylation of a portion of the subunit sugar residues of the xanthan base .