done with smallest