changed array of tags to list of tags