refactor stat wrapupstart feature