added nodes array for bookkeeping