equals methods updated.