reverse the structure