added cross-correlation functions