sample equals ignores id case