removing document write