switched to min, expanded search