change list-min/max using apply