a method of applying a biocidal polymer to a surface including applying a solution of the biocidal polymer to the surface , wherein the biocidal polymer includes biocidal groups and the biocidal polymer is insoluble in water . the biocidal groups can be selected from the group consisting of quaternary salt groups or haloamino groups .