mark all min and max values