add initialize for Document