added gc for statistics