automatic format files