completing cache functions