changing refs to document_ptr supermodel instead of xxxx_ptr submodel