correlation code done