removed testfile = 1 if clause