removed equal method of extended class