added smarter compare graph