fill function for statistics added