Re-adaptation of the logical order of the code