upd statistics.py