 This reaction proceeds by removal of the leaving group X forming a carbocation as electron deficient center.One of the adjacent alkyl groups then migrates to the positive carbon in a 1,2-shift.Simultaneously with the shift, a pi bond forms from the oxygen to carbon, assisting in driving the migrating group off its position.