fixing getting usage for each resource