working on the 'getComparisonValues' function