change equal method for Event