edit to table format