now the main program has a first and second node from which to start