add one more conditin for statistics printing to avoid timestamp problem