added subtract method to ResourceTable