fixed syntax error and check for non-int CCNs