Is there any kind of algo available for this correlation