change cache routine