add equals to method