put glob in a function