add min and max to stats