added equals and hashcode for actor