update vortex detection code