changed if to else-if in ccNum