glob function added