added override for equals and hashCode in event