formatting of response data