modified to maximize use of resource available at time of