use pointer to search response and no longer use return variables in func signature