added equality check as option