finelize initial document