refactored the format ocl output file