updates to vortex detection code