implemented equals and hashcode

special form was unneeded