new real time stat
refactoring