added method to clear cache