revert back to previous saccade detection function using median filter