added path variable for number of results to return