new doc datastructure