fixed naming for output file