rewrite part of statistics