made NameAndValue comparable