cms functions added