added correlation time func