Translations and code rearrangement