add implementation of printing gvars