update
refactor ReST outputs codes