add two cache function