removed redundant test (that wrote outputfile)