Tag Selected: how to work with arrays