correlation code update