adds rowspan and colspan