added equality check