Optimize code format