added cache cleaning method