initializing doc