fix min/max/etc in output