added extension for output file