made c- output to stoud if no output file is supplied;