need to pick nonzero max_val.