modified preview and counter cahce