added handling results.length > 1