handle return response