Changed equal to identity check