amend_while