creating a doc