preliminary work on stats