Some cleaning in correlation function