some stuff for stats