limit number of results returned if maxResults specified, for #4