rest restructure