in the past , fouling was controlled by either dousing pipes with large amounts of sodium hypochlorite - a hazardous chemical not easily stored at sea - or dissolving copper directly into the water , an expensive and environmentally damaging solution .