rearranging enumerations