formatting data type of responses