re-format hierarchy to be compatible with galaxy needed layout