finalizing document properties