make statistics automatically