improving assigned_resource