gets to min functionality