re-define the main document