added C/R routines