improved facttable comparison