removed cache function