rename function name + added new function setCache