update setDetails to use the cache