remove cases join in visit table