refactor result response.