format the file to fit code format