moved tocamel function into utilities_internal