The invention relates to a method of providing a structure by depositing a layer on a substrate in a reactor. The method comprising:introducing a silicon halide precursor in the reactor;introducing a reactant gas comprising oxygen in the reactor; and,providing an energy source to create a plasma from the reactant gas so that the oxygen reacts with the first precursor in a layer comprising silicon dioxide.