cross correlative function