My codes used for CMS work