remove calls to (cc) in (main)

num was being used after reclaiming its memory causing unpredictable errors