adding private vars in mod, write to doc