doc is created only once