rearranging categories and subs