adding newDoc