file refine and style tuning