changed join != case to work properly

I hope