fixed foodcritic error on accessing node attibutes