code to correlate sim scores