improving template_theme.assigned_resource_ids