convert tags array to set on assignment