changes to fill the cachesolve implementation