setup restructer