add functions for gtags