add variable to self-document save function