fix the equality operator