trying to get table data to match for priority