finished file output and victim transformation