add function in globs