added logging to response_array for debug