What causes corrosion and how to avoid it?