sorting out structure