added method for writing html comparisons