proper output file format and name