oh, min takes a key function