use pointer for response object