added a juicy statistics function