using injected response object