made node more efficient but before chaning list of items to list of item ids