added forward iteration through nodes