initialize doc