change all request and response into data type