improve resource allocation