cod clean up