update reference to min