updating doc structure