add detail table into comparison