crosscor function is back in place