added address comparison function