Trying to fix CC code