connected main edoc to its body