used a min instead of max for statistics.....