getting all the data we need for the compare view