cache function to be @Deprecated