reformat content class code