updated extractTables function to "Ind" over "Res"