swap cr and crr func.