beginning of bde auto-formatter