added eq() attr checking