rearranged codes