improvments on stats system