cleanup of statistics feature