add document for paint