refactor `$response` var