function names have been changed to be called in cm