xcorr hard code max delay to 10
merged with rob's code