improve correlation output logic..