format entire file