preparations for view counter.