add cooc fuction