added glob prototype method