refactor response.