initialize length variable for cache