working with cache.length