refactored update into 'submitComparison' method