equals rewritted