restructed app