fixing up PairAnalysis to get ready for view_data method