this assumes results[0] and results[0].tags exist. If either of them don't, this will halt the script.