main doc edit