changed the pivot tables to be correct