reformating for better flatdoc compatability