restructure into table format