documents replacement methods