cross corelation, sort of working