add functions to get response size