difference between min and small function