Atom rearrangement in compounds