set setCC function to gobal function