throw range_error
update