Plasmids also can provide bacteria with an ability to fix elemental nitrogen or to degrade difficult organic compounds . Plasmids also can provide bacteria with an ability to fix elemental nitrogen or to degrade recalcitrant organic compounds which provide an advantage when nutrients are scarce .