minor min-max cleanup