The reaction is then completed either by the reformation of the carbonyl through an 1,2-rearrangement or by the formation of the epoxide.
The epoxide product is formed by an intramolecular addition reaction in which a lone pair from the oxygen attacks the carbocation (6).